﻿using System;
using System.Runtime.Serialization;

namespace Columbus
{
    [DataContract]
    public class NavigationParameter
    {
        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public object Value { get; set; }

        public NavigationParameter(string name, object value)
        {
            Name = name;
            Value = value;
        }

        public NavigationParameter(object value) : this(null, value)
        {
        }
    }
}